package com.trinity.order.refund.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.trinity.order.refund.domain.XcRefundOrder;

import java.util.List;

/**
 * 退款订单Mapper接口
 *
 * @author 董诗攀
 * @date 2024-02-26
 */
public interface XcRefundOrderMapper extends BaseMapper<XcRefundOrder> {
    /**
     * 查询退款订单
     *
     * @param id 退款订单主键
     * @return 退款订单
     */
    public XcRefundOrder selectXcRefundOrderById(Long id);

    /**
     * 查询退款订单列表
     *
     * @param xcRefundOrder 退款订单
     * @return 退款订单集合
     */
    public List<XcRefundOrder> selectXcRefundOrderList(XcRefundOrder xcRefundOrder);

    /**
     * 新增退款订单
     *
     * @param xcRefundOrder 退款订单
     * @return 结果
     */
    public int insertXcRefundOrder(XcRefundOrder xcRefundOrder);

    /**
     * 修改退款订单
     *
     * @param xcRefundOrder 退款订单
     * @return 结果
     */
    public int updateXcRefundOrder(XcRefundOrder xcRefundOrder);

    /**
     * 删除退款订单
     *
     * @param id 退款订单主键
     * @return 结果
     */
    public int deleteXcRefundOrderById(Long id);

    /**
     * 批量删除退款订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteXcRefundOrderByIds(Long[] ids);
}
